﻿
@{
    ViewBag.Title = "UpdateCN_TrucTiepConfig";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

@model CN_TrucTiepService.Models.ChoNhanModels
@using (Html.BeginForm("UpdatechoNhanConfig", "CN_TrucTiep", FormMethod.Post))
{
  
     <h4 class="page-header">Update</h4>
    <div class="col-md-4 col-md-offset-3">
        <div class="panel panel-default">
            <div class="panel-heading panel-default">
                <h3 class="panel-title">Update</h3>
            </div>
            <div class="panel-body">
                <form role="form">
                    <fieldset>
                        @Html.HiddenFor(m => m.ID)
                      
                        <div class="form-group">
                            <label>In</label>
                            @Html.TextBoxFor(m => m.In, new { @class = "form-control" })
                        </div>
                       
                        <div class="form-group">
                            <label>Out</label>
                            @Html.TextBoxFor(m => m.Out, new { @class = "form-control" })
                        </div>
                        <div class="form-group">
                            <label>Commission</label>
                            @Html.TextBoxFor(m => m.Commission, new { @class = "form-control" })
                        </div>
                        <div class="form-group">
                            <label>Min</label>
                            @Html.TextBoxFor(m => m.Min, new { @class = "form-control" })
                        </div>
                        <div class="form-group">
                            <label>Max</label>
                            @Html.TextBoxFor(m => m.Max, new { @class = "form-control" })
                        </div>
                        <div class="form-group">
                            <label>Status</label>
                            @Html.DropDownList("status", new SelectList(
                                   new List<Object>
                                   {
                                       new { value =1 , text = "Chọn"},
                                       new { value =2 , text = "Chưa chọn"},
                                    },
                                  "value",
                                  "text",
                                 ViewBag.Stt), new { @class = "form-control" })
                        </div>
                        <button type="reset" class="btn_submit btn btn-default pull-right">Cancel</button>
                        <button type="submit" class="btn_submit btn btn-default pull-right" style="margin-right:5px;">Save</button>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
}


